package keshe;

public  class TripleNode {

    public int row;
    public int column;
    public int value;

    public TripleNode(int row,int column,int value){
        this.row=row;
        this.column=column;
        this.value=value;

    }
    public TripleNode(){
        this(0,0,0);

    }

   /* public static void main(String[] args) {
        int[][] a = new int[6][6];
        int[][] b = new int[6][6];
        a[4][3] = 13;
        a[5][3] = 53;
        a[5][2] = 3;
        b[5][4] = 2;
        b[4][5] = 5;
        int Acount = 0;
        int Bcount = 0;

        for(int i = 0; i < 6; ++i) {
            for(int j = 0; j < 6; ++j) {
                if (a[i][j] != 0) {
                    Acount++;
                }

                if (b[i][j] != 0) {
                    Bcount++;
                }

                System.out.println("" + a[i][j]);
                System.out.println("" + b[i][j]);
            }

            System.out.println();
        }

        System.out.println(Acount);
        System.out.println(Bcount);
        int[][] c = new int[Acount + 1][3];
        int[][] d = new int[Bcount + 1][3];
        c[0][0] = 6;
        c[0][1] = 6;
        c[0][2] = Acount;
        d[0][0] = 6;
        d[0][1] = 6;
        d[0][2] = Bcount;
        int x = 1;

        int i;
        int j;
        for(i = 0; i < 6; ++i) {
            for(j = 0; j < 6; ++j) {
                if (a[i][j] != 0) {
                    c[x][0] = i;
                    c[x][1] = j;
                    c[x][2] = a[i][j];
                    ++x;
                }
            }
        }

        for(i = 0; i < 6; ++i) {
            for(j = 0; j < 6; ++j) {
                if (b[i][j] != 0) {
                    d[x][0] = i;
                    d[x][1] = j;
                    d[x][2] = b[i][j];
                    ++x;
                }
            }
        }

        int[][] e = new int[c[0][0]][c[0][1]];
        int[][] f = new int[d[0][0]][d[0][1]];


        for(i = 1; i < Acount + 1; i++) {
            e[c[i][0]][c[i][1]] = c[i][2];
        }


        for(i = 0; i < 6; i++) {
            for(j = 0; j < 6; j++) {
                System.out.println("a=" + e[i][j]+"");
            }

            System.out.println();
        }

        for(i = 1; i < Bcount + 1; i++) {
            f[d[i][0]][d[i][1]] = c[i][2];
        }

        for(i = 0; i < 6; i++) {
            for(j = 0; j < 6; j++) {
                System.out.println("b=" + f[i][j]+"");
            }

            System.out.println();
        }

    }*/
}
